package lc;

public class Ex1279 {
    class TrafficLight {
        boolean isAGreen;    
    
        public TrafficLight() {
            isAGreen = true;
        }
        
        synchronized public void carArrived(
            int carId,           // ID of the car
            int roadId,          // ID of the road the car travels on. Can be 1 (road A) or 2 (road B)
            int direction,       // Direction of the car
            Runnable turnGreen,  // Use turnGreen.run() to turn light to green on current road
            Runnable crossCar    // Use crossCar.run() to make car cross the intersection 
        ) {
            
        }
    }
    
}
